import requests
import json, cv2
from base64 import b64decode
import numpy as np

def file_post():
    # 读取json文件
    # 目标地址
    url = "http://0.0.0.0:2680/update"
    # 发出
    file_path = "data/update/upgrade_zip/upgrade.zip"
    request = requests.post(url=url, files={"file":open(file_path,"rb")})
    print(request)



if __name__ == "__main__":
    file_post()
    # EDP_file_post()
    # img_post_detect()

